//
//  OrderHistoryModel.m
//  CenturyInterconnection
//
//  Created by l-sheng on 6/13/16.
//  Copyright © 2016 Shanghai DuRui Information Technology Company. All rights reserved.
//

#import "OrderHistoryModel.h"

@implementation OrderHistoryModel

- (id)initWithDictionary:(NSDictionary *)data
{
    
        
    self.products_model = data[@"products_model"];
    self.qty = data[@"qty"];
    self.products_name = data[@"products_name"];
    self.price = data[@"price"];
    self.products_id = data[@"products_id"];
    self.value = [data[@"attributes"]firstObject][@"value"];
    self.option = [data[@"attributes"]firstObject][@"option"];
    
    return self;
}


@end
